package com.company.learning.singleton;

/**
 * @Author: zhaoqi
 * @Date: 8/25/2019 6:01 PM
 * @Version 1.0
 */

//饿汉式单例模式
public class Singleton1 {

    private Singleton1(){}

    private static Singleton1 singleton1 = new Singleton1();

    public static Singleton1 getInstance(){
        return singleton1;
    }

}
